<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="renderer" content="webkit">
    <title></title>
    <link href="__PUBLIC__/css/table_form.css" rel="stylesheet" type="text/css" />
    <script src='__PUBLIC__/assets/js/jquery.js'></script>
    <script language="javascript" type="text/javascript" src="__PUBLIC__/js/formvalidator.js" charset="UTF-8"></script>
    <script language="javascript" type="text/javascript" src="__PUBLIC__/js/formvalidatorregex.js" charset="UTF-8"></script>
    <include file="./Application/Admin/View/block/easyui_header.php" />

</head>
<body>
<script type="text/javascript">
    $(document).ready(function() {
        $.formValidator.initConfig({autotip:true,formid:"myform",onerror:function(msg){}});
//        $("#old_password").formValidator({empty:true,onshow:"不修改密码请留空。",onfocus:"密码应该为6-20位之间",oncorrect:"旧密码输入正确"}).inputValidator({min:6,max:20,onerror:"密码应该为6-20位之间"}).ajaxValidator({
//            type : "get",
//            url : "__URL__/set_pwd",
//            data :"",
//            datatype : "json",
//            async:'false',
//            success : function(data){
//                if( data.status == '0' )
//                {
//                    return true;
//                }
//                else
//                {
//                    return false;
//                }
//            },
//            buttons: $("#dosubmit"),
//            onerror : "旧密码输入错误",
//            onwait : "请稍候..."
//        });
        $("#new_password").formValidator({empty:true,onshow:"不修改密码请留空。",onfocus:"密码应该为6-20位之间"}).inputValidator({min:6,max:20,onerror:"密码应该为6-20位之间"});
        $("#new_pwdconfirm").formValidator({empty:true,onshow:"不修改密码请留空。",onfocus:"请输入两次密码不同。",oncorrect:"密码输入一致"}).compareValidator({desid:"new_password",operateor:"=",onerror:"请输入两次密码不同。"});
    })
</script>

<div class="pad_10">
    <div class="common-form">
        <form name="myform" action="__URL__/set_pwd" method="post" id="myform">
            <input type="hidden" name="id" value="{$user['id']}">
            <table width="100%" class="table_form contentWrap">
                <tbody><tr>
                    <td width="80">用户名</td>
                    <td>{$user['username']} (真实姓名 {$user['realname']})</td>
                </tr>

                <tr>
                    <td>E-mail</td>
                    <td>
                        {$user['email']}</td>
                </tr>

                <tr>
                    <td>旧密码</td>
                    <td><input type="password" name="old_password" id="old_password" class="input-text"><div id="old_passwordTip" class="onShow">不修改密码请留空。</div></td>
                </tr>

                <tr>
                    <td>新密码</td>
                    <td><input type="password" name="new_password" id="new_password" class="input-text"><div id="new_passwordTip" class="onShow">不修改密码请留空。</div></td>
                </tr>
                <tr>
                    <td>重复新密码</td>
                    <td><input type="password" name="new_pwdconfirm" id="new_pwdconfirm" class="input-text"><div id="new_pwdconfirmTip" class="onShow">不修改密码请留空。</div></td>
                </tr>


                </tbody></table>

            <div class="bk15"></div>
            <input name="dosubmit" type="submit" value="提交" class="submit-button bule-button" id="dosubmit">
        </form>
    </div>
</div>
</body>
</html>